package DbfEdit;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class DbfEdit
extends JFrame
{
  JTable table;
  DbfModel dbfModel;

  public DbfEdit()
      throws Exception
  {
    super("DbfEdit");
    addWindowListener(new WindowClosingAdapter());
    dbfModel = new DbfModel() ;
    table = new JTable( dbfModel , null ) ;
    table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    table.setCellSelectionEnabled(true);
    Container cp = getContentPane();
    cp.add(new JScrollPane(table), "Center");
  }

  public static void main(String[] args)
      throws Exception
  {
    DbfEdit frame = new DbfEdit();
    frame.setLocation(100, 100);
    frame.setSize( 1000 , 500 ) ;
    frame.setVisible(true);
  }
}